Skip to content

Conversation

AndreasArvidsson
Copy link
Member

Matching pairs can be nested, but they can't be overlapping
eg ( [ ) ]
In this example the parentheses are a actual pair since they came first, but the square brackets are not a pair. This corresponds to the syntax highlighting in vscode.

Fixes #1318

Checklist

  • I have added tests
  • [/] I have updated the docs and cheatsheet
  • [/] I have not broken the cheatsheet

@AndreasArvidsson AndreasArvidsson requested a review from a team as a code owner January 25, 2025 04:22
…andlers/SurroundingPairScopeHandler/getSurroundingPairOccurrences.ts
@phillco phillco enabled auto-merge January 25, 2025 18:38
@phillco phillco added this pull request to the merge queue Jan 25, 2025
Merged via the queue into main with commit a5e8366 Jan 25, 2025
15 checks passed
@phillco phillco deleted the overlappingPairs branch January 25, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

<> pairs in files without a parse tree

2 participants